package com.cg.Dto;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;
@Data
public class UpdateFarmDto {
    @Schema(description = "牧场唯一标识符，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Schema(description = "牧场名称，字符串类型，非空")
    @Max(value = 100,message = "牧场名称长度最长为100")
    private String farmName;
    @Schema(description = "场地规模，整数类型，表示牧场占地面积，单位平方米，非空")
    @Max ( value = 99999,message = "长度最长不超过99999")
    @Min(value = 100,message ="长度最小不超过100" )
    private Integer siteScale;
    @Schema(description = "养殖规模，整数类型，表示当前养殖牲畜的数量，非空")
    @Max ( value = 99999,message = "长度最长不超过99999")
    private Integer breedingScale;
    @Schema(description = "省，字符串类型，表示牧场所在的省份")
    private String province;
    @Schema(description = "市，字符串类型，表示牧场所在的城市")
    private String city;
    @Schema(description = "区/县，字符串类型，表示牧场所在的区或县")
    private String districtCounty;
    @Schema(description = "详细地址，文本类型，提供牧场的具体位置信息")
    private String address;
    @Schema(description = "位置，POINT类型，存储牧场的经纬度坐标，由地图服务自动生成，非空")
    private String location;
    @Schema(description = "牲畜品种ID，逻辑外键，指向数据字典中牲畜品种对应的记录ID")
    private Integer dictionaryDataId;
    @Schema(description = "牲畜品种")
    private String breed;
}
